#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QSerialPort>
#include "QString"
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    QSerialPort *serialPort;    //定义串口接口变量

private slots:
    void on_Button_Serial_Open_clicked();
    void on_Button_Serial_Close_clicked();
    void plainTextEdit_SerialInputData_ReadyData_Slot();

    void on_Button_Serial_SendData_clicked();

    void on_Button_Serial_CleanData_clicked();

private:
    Ui::Widget *ui;
};

#endif // WIDGET_H
